﻿<?php
// Disallow direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<table width="100%" border="0">
	<tr>
		<td width="55%" valign="top">
			<div id="cpanel">
				<?php echo $this->addIcon('categories.gif','category', JText::_('Categories'));?>
				<?php echo $this->addIcon('types.gif','type', JText::_('Types'));?>
				<?php echo $this->addIcon('products.png','products', JText::_('Products'));?>
				<?php echo $this->addIcon('countries.png','country', JText::_('Countries'));?>
				<?php echo $this->addIcon('countries.png','state', JText::_('States'));?>
				<?php echo $this->addIcon('countries.png','locality', JText::_('Localities'));?>
				<?php echo $this->addIcon('profiles.gif','profiles', JText::_('Profiles'));?>
				<?php echo $this->addIcon('icon-48-article.png','manual', JText::_('About'));?>
                <?php echo $this->addIcon('icon-48-article.png','menus&task=menus', JText::_('Create Menus'));?>
                <?php echo $this->addIcon('icon-48-article.png','menus&task=export', JText::_('Create Csv'));?>
                <?php echo $this->addIcon('icon-48-article.png','menus&task=import', JText::_('Import Csv'));?>
			</div>
		</td>
		<td width="45%" valign="top">
			<?php
				echo $this->pane->startPane( 'stat-pane' );
				echo $this->pane->startPanel( JText::_('Properties') , 'welcome' );
			?>
			<table class="adminlist">
				<tr>
					<td>
						<div style="font-weight:700;">
							<?php echo JText::_('Version');?> : 2.0.184
						</div>
						<p>							
					<a href="http://www.com-property.com" target="_blank">http://www.com-property.com</a>							
						</p>
						<p>
					<a href="http://www.com-property.com" target="_blank">http://www.com-property.com/</a>
						</p>
					</td>
				</tr>
			</table>
			<?php
				echo $this->pane->endPanel();
				echo $this->pane->startPanel( JText::_('Products') , 'community' );
			?>
				<table class="adminlist">
					<tr>
						<td>
							<?php echo JText::_( 'Products' ).': '; ?>
						</td>
						<td align="center">
							<strong><?php echo $this->products; ?></strong>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'Categories' ).': '; ?>
						</td>
						<td align="center">
							<strong><?php echo $this->categories; ?></strong>
						</td>
					</tr>
					<tr>
						<td>
							<?php echo JText::_( 'Types' ).': '; ?>
						</td>
						<td align="center">
							<strong><?php echo $this->types; ?></strong>
						</td>
					</tr>
				</table>

			<?php
				echo $this->pane->endPanel();
				echo $this->pane->startPanel( JText::_('Agents'), 'groups' );
			?>
				<table class="adminlist">
					<tr>
						<td>
							<?php echo JText::_( 'Agents' ).': '; ?>
						</td>
						<td align="center">
							<strong><?php echo $this->agents; ?></strong>
						</td>
					</tr>					
					<tr>
						<td>
							<?php echo JText::_( 'Publisher' ).': '; ?>
						</td>
						<td align="center">
							<strong><?php echo $this->publisher; ?></strong>
						</td>
					</tr>
                    <tr>
						<td>
							<?php echo JText::_( 'Registered' ).': '; ?>
						</td>
						<td align="center">
							<strong><?php echo $this->registered; ?></strong>
						</td>
					</tr>
				</table>
			<?php
				echo $this->pane->endPanel();
				echo $this->pane->startPanel( JText::_('More visited'), 'news' );
			?>
				<table class="adminlist">
<?php
							
	for ($i=0, $n=count( $this->morevisited ); $i < $n; $i++)	
    {
$row = &$this->morevisited[$i];
echo '<tr><td>'.$row->hits.' </td><td> '.$row->id.' : '.$row->name.'</td></tr>';
}
?>

				</table>
			<?php
				echo $this->pane->endPanel();
				echo $this->pane->endPane();
			?>
		</td>
	</tr>
</table>